Optimal. Leaf size=32 \[ \frac {\sin (c+d x)}{a d}-\frac {\sin ^2(c+d x)}{2 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {2746}
\begin {gather*} \frac {\sin (c+d x)}{a d}-\frac {\sin ^2(c+d x)}{2 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2746
Rubi steps
\begin {align*} \int \frac {\cos ^3(c+d x)}{a+a \sin (c+d x)} \, dx &=\frac {\text {Subst}(\int (a-x) \, dx,x,a \sin (c+d x))}{a^3 d}\\ &=\frac {\sin (c+d x)}{a d}-\frac {\sin ^2(c+d x)}{2 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 24, normalized size = 0.75 \begin {gather*} -\frac {(-2+\sin (c+d x)) \sin (c+d x)}{2 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.00, size = 28, normalized size = 0.88
method | result | size |
derivativedivides | \(-\frac {\frac {\left (\sin ^{2}\left (d x +c \right )\right )}{2}-\sin \left (d x +c \right )}{a d}\) | \(28\) |
default | \(-\frac {\frac {\left (\sin ^{2}\left (d x +c \right )\right )}{2}-\sin \left (d x +c \right )}{a d}\) | \(28\) |
risch | \(\frac {\sin \left (d x +c \right )}{a d}+\frac {\cos \left (2 d x +2 c \right )}{4 a d}\) | \(32\) |
norman | \(\frac {\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d a}+\frac {2 \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {2 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {2 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}\) | \(105\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.41, size = 25, normalized size = 0.78 \begin {gather*} -\frac {\sin \left (d x + c\right )^{2} - 2 \, \sin \left (d x + c\right )}{2 \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 25, normalized size = 0.78 \begin {gather*} \frac {\cos \left (d x + c\right )^{2} + 2 \, \sin \left (d x + c\right )}{2 \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 158 vs.
\(2 (22) = 44\).
time = 2.33, size = 158, normalized size = 4.94 \begin {gather*} \begin {cases} \frac {2 \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{a d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a d} - \frac {2 \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{a d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a d} + \frac {2 \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{a d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + a d} & \text {for}\: d \neq 0 \\\frac {x \cos ^{3}{\left (c \right )}}{a \sin {\left (c \right )} + a} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.06, size = 25, normalized size = 0.78 \begin {gather*} -\frac {\sin \left (d x + c\right )^{2} - 2 \, \sin \left (d x + c\right )}{2 \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.49, size = 22, normalized size = 0.69 \begin {gather*} -\frac {\sin \left (c+d\,x\right )\,\left (\sin \left (c+d\,x\right )-2\right )}{2\,a\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________